package edu.zju.gis.dbfg.server.mapper;

import edu.zju.gis.dbfg.common.base.BaseMapper;
import edu.zju.gis.dbfg.server.model.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role, String> {
    public Role search(@Param("depart") String depart,@Param("usrlevel") int usrlevel);
    public List<Role> searchByDepartment(String depart);
    public Role departmentsAndLevel(String userId);
}
